package com.qf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsRole;

import java.util.List;
import java.util.Set;

/**
 * @author wanghaotian
 * time:2022/12/16,0016 9:01
 * description:
 */

public interface DtsRoleService {
    Set<String> findRoleByRolesId(Integer[] roleIds);

    List<DtsRole> findAll();

    IPage<DtsRole> findPage(Integer page, Integer limit, String name, String sort, String order);

    void add(DtsRole role);

    void delete(DtsRole role);

    void update(DtsRole role);

    boolean isSuperAdmin(Integer roleId);

    Set<String> selectPermissions(Integer roleId);
}
